package homework2;

public class Tennis implements IBaseSport, IRanked {
	
	int rank;
	String name;
	
	public Tennis( String name, int rank){
		this.rank = rank;
		this.name = name;
	}
	
	@Override
	public int getRank() {
		return this.rank;
	}

	@Override
	public boolean hasBetterRanking(IRanked rank) {
		return this.getRank() < rank.getRank();
	}

}
